package 传智播客_黑马.java高级.IO流.转换流;

import java.io.*;

class 学习inputStreamReader {
    public static void main(String[] args) throws IOException {
        FileInputStream inputStream = new FileInputStream("D:\\IdeaProjects\\黑马程序员\\src\\DarkHorse\\IO\\resources\\b.txt");
        InputStreamReader streamReader = new InputStreamReader(inputStream,"GBK");

        int len = 0;
        char[] chars = new char[1024];
        streamReader.read(chars);

        System.out.println(chars);

        streamReader.close();
        inputStream.close();
    }
}
